package com.tudouji.project.flow.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息发送规则对象 smsrule
 * 
 * @author tudouji
 * @date 2021-05-20
 */
public class Smsrule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String guid;

    /** '业务类型1-销售订单 2-库房调拨单3-库存调整单4-生产领料单5-生产入库6-报废单 7-采收合同调价8-回款单9-充值 */
    @Excel(name = "'业务类型1-销售订单 2-库房调拨单3-库存调整单4-生产领料单5-生产入库6-报废单 7-采收合同调价8-回款单9-充值")
    private Integer type;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typename;

    /** 规则编码 */
    @Excel(name = "规则编码")
    private String rulecode;

    /** 接收人 */
    @Excel(name = "接收人")
    private String receiveper;

    /** 接收人手机号码 */
    @Excel(name = "接收人手机号码")
    private String receivetel;

    /** 短信模板ID */
    @Excel(name = "短信模板ID")
    private String smsmodelid;

    /** 短信模板名称 */
    @Excel(name = "短信模板名称")
    private String smsmodelname;

    /** 短信模板对应的签名 */
    @Excel(name = "短信模板对应的签名")
    private String smssignature;

    /** 微信模板ID */
    @Excel(name = "微信模板ID")
    private String wxmodelid;

    /** 微信模板名称 */
    @Excel(name = "微信模板名称")
    private String wxmodelname;

    /** 微信内容 */
    @Excel(name = "微信内容")
    private String wxcontent;

    /** 消息类型
1、微信通知 2、短信通知 3 微信及短信通知 */
    @Excel(name = "消息类型1、微信通知 2、短信通知 3 微信及短信通知")
    private Integer sendtype;

    /** 状态
0-删除，
1-生效 */
    @Excel(name = "状态0-删除，1-生效")
    private Integer status;

    /** 操作时间 */
    private Date opertime;

    /** 操作人 */
    private String operguid;

    /** 条件(1无条件) */
    @Excel(name = "条件(1无条件)")
    private String condition;

    /** 查询发送人规则 0-按照短信规则检索；1-按照权限检索 默认为0 */
    @Excel(name = "查询发送人规则 0-按照短信规则检索；1-按照权限检索 默认为0")
    private Integer searchperrule;

    /** 回调地址 */
    @Excel(name = "回调地址")
    private String backurl;

    /** 流程id */
    @Excel(name = "流程id")
    private String flowid;

    /** 1-待处理，2-通知 */
    @Excel(name = "1-待处理，2-通知")
    private Integer flag;

    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setTypename(String typename) 
    {
        this.typename = typename;
    }

    public String getTypename() 
    {
        return typename;
    }
    public void setRulecode(String rulecode) 
    {
        this.rulecode = rulecode;
    }

    public String getRulecode() 
    {
        return rulecode;
    }
    public void setReceiveper(String receiveper) 
    {
        this.receiveper = receiveper;
    }

    public String getReceiveper() 
    {
        return receiveper;
    }
    public void setReceivetel(String receivetel) 
    {
        this.receivetel = receivetel;
    }

    public String getReceivetel() 
    {
        return receivetel;
    }
    public void setSmsmodelid(String smsmodelid) 
    {
        this.smsmodelid = smsmodelid;
    }

    public String getSmsmodelid() 
    {
        return smsmodelid;
    }
    public void setSmsmodelname(String smsmodelname) 
    {
        this.smsmodelname = smsmodelname;
    }

    public String getSmsmodelname() 
    {
        return smsmodelname;
    }
    public void setSmssignature(String smssignature) 
    {
        this.smssignature = smssignature;
    }

    public String getSmssignature() 
    {
        return smssignature;
    }
    public void setWxmodelid(String wxmodelid) 
    {
        this.wxmodelid = wxmodelid;
    }

    public String getWxmodelid() 
    {
        return wxmodelid;
    }
    public void setWxmodelname(String wxmodelname) 
    {
        this.wxmodelname = wxmodelname;
    }

    public String getWxmodelname() 
    {
        return wxmodelname;
    }
    public void setWxcontent(String wxcontent) 
    {
        this.wxcontent = wxcontent;
    }

    public String getWxcontent() 
    {
        return wxcontent;
    }
    public void setSendtype(Integer sendtype) 
    {
        this.sendtype = sendtype;
    }

    public Integer getSendtype() 
    {
        return sendtype;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setOpertime(Date opertime) 
    {
        this.opertime = opertime;
    }

    public Date getOpertime() 
    {
        return opertime;
    }
    public void setOperguid(String operguid) 
    {
        this.operguid = operguid;
    }

    public String getOperguid() 
    {
        return operguid;
    }
    public void setCondition(String condition) 
    {
        this.condition = condition;
    }

    public String getCondition() 
    {
        return condition;
    }
    public void setSearchperrule(Integer searchperrule) 
    {
        this.searchperrule = searchperrule;
    }

    public Integer getSearchperrule() 
    {
        return searchperrule;
    }
    public void setBackurl(String backurl) 
    {
        this.backurl = backurl;
    }

    public String getBackurl() 
    {
        return backurl;
    }
    public void setFlowid(String flowid) 
    {
        this.flowid = flowid;
    }

    public String getFlowid() 
    {
        return flowid;
    }
    public void setFlag(Integer flag) 
    {
        this.flag = flag;
    }

    public Integer getFlag() 
    {
        return flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("type", getType())
            .append("typename", getTypename())
            .append("rulecode", getRulecode())
            .append("receiveper", getReceiveper())
            .append("receivetel", getReceivetel())
            .append("smsmodelid", getSmsmodelid())
            .append("smsmodelname", getSmsmodelname())
            .append("smssignature", getSmssignature())
            .append("wxmodelid", getWxmodelid())
            .append("wxmodelname", getWxmodelname())
            .append("wxcontent", getWxcontent())
            .append("sendtype", getSendtype())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("opertime", getOpertime())
            .append("operguid", getOperguid())
            .append("condition", getCondition())
            .append("searchperrule", getSearchperrule())
            .append("backurl", getBackurl())
            .append("flowid", getFlowid())
            .append("flag", getFlag())
            .toString();
    }
}
